home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17934 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: ivan.iecc.com!not-for-mail
  2. From: Graham D Parrington <Graham.Parrington@ncl.ac.uk>
  3. Newsgroups: comp.lang.c++,comp.compilers
  4. Subject: Re: Parsing C++ headers?
  5. Date: 18 Apr 1996 00:32:28 -0400
  6. Organization: University of Newcastle upon Tyne
  7. Sender: johnl@iecc.com
  8. Approved: compilers@ivan.iecc.com
  9. Message-ID: <96-04-104@comp.compilers>
  10. References: <96-04-033@comp.compilers> <96-04-078@comp.compilers>
  11. NNTP-Posting-Host: localhost.iecc.com
  12. Keywords: C++, parse
  13.  
  14. John Mitchell <104316.1514@CompuServe.COM> writes:
  15. >I want to parse C++ header files, and extract information about the
  16. >contained classes and their interface. A yacc-able grammar for this
  17. >type of problem ( or superset of it, as for compilation) would be a
  18. >great help. I'm aware of a grammar for C++ 2.0 out there - is there a
  19. >later version supporting templates?
  20.  
  21. You could always look at the C++ stub generator that's part of Arjuna.
  22. That has to read C++ headers and pick out classes, determine
  23. inheritence etc in order to be able to reproduce equivalent classes
  24. that do RPC.  It has a yacc parser for a grammer that supports
  25. templates to some extent (it is not complete w.r.t the current ANSI
  26. spec but it does a fair job).  The stub system is described in Usenix
  27. Computer Systems Vol 8 No 2.  You can get Arjuna source and papers
  28. (including the stub system) from http://arjuna.ncl.ac.uk
  29.  
  30. Have fun!
  31.  
  32. Graham
  33. --
  34. EMAIL = Graham.Parrington@newcastle.ac.uk
  35. POST  = Dept. of Computing, The University, Newcastle upon Tyne, UK NE1 7RU
  36. VOICE = +44 191 222 8067    FAX = +44-191-222-8232
  37. --
  38. Send compilers articles to compilers@iecc.com,
  39. meta-mail to compilers-request@iecc.com.
  40.